package ar.com.cema.methodology.analyzer.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="methodologies_answers")
public class MethodologyAnswer extends PersistentObject {

	@ManyToOne
	@JoinColumn(nullable=false, name="variable_id")
	private Variable variable;
	
	@ManyToOne
	@JoinColumn(nullable=false, name="methodology_id")
	private Methodology methodology;

	@Column(nullable=false)
	private Integer value;

	@ManyToOne
	@JoinColumn(nullable=false, name="answer_id")
	private Answer answer;
	
	public Methodology getMethodology() {
		return methodology;
	}
	public void setMethodology(Methodology methodology) {
		this.methodology = methodology;
	}
	public Integer getValue() {
		return value;
	}
	public void setValue(Integer value) {
		this.value = value;
	}
	public Variable getVariable() {
		return variable;
	}
	public void setVariable(Variable variable) {
		this.variable = variable;
	}
	public Answer getAnswer() {
		return answer;
	}
	public void setAnswer(Answer answer) {
		this.answer = answer;
	}
}
